package com.simtop.pojo.experiment;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lvyongwei
 */
@Data
@Alias("experimentDynamicVo")
public class ExperimentDynamicVo {

    /**
     * 实验id
     */
    private Long experimentId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 标题
     */
    private String experimentTitle;

    /**
     * 实验结束时间
     */
    private Date endTime;

    /**
     * 自我评价
     */
    private String selfEvaluation;

    /**
     * 搜索内容
     */
    private String message;

    /**
     * 总点赞个数
     */
    private Long giveLike;

    /**
     * 当前用户是否点赞
     */
    private boolean ifGiveLike;

    /**
     * 作品动态内容
     */
    private String experimentContent;

    private Integer pageNum;

    private Integer pageSize;

    private String experimentAuthor;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date experimentDate;
}
